class UserRegisterData {
  String username;
  String password;
  String mobile;
  String verificationCode;
  String truename;
  String creditType;
  String creditId;
  String corpName;
  String relPerson;
  String code;
  String agentName;
  String agentCode;
  String agentPhone;
  int scope;

  UserRegisterData({
    this.scope = 1,
    this.username = '',
    this.password = '',
    this.mobile = '',
    this.verificationCode = '',
    this.truename = '',
    this.creditType = '10',
    this.creditId = '',
    this.corpName = '',
    this.relPerson = '',
    this.code = '',
    this.agentName = '',
    this.agentCode = '',
    this.agentPhone = '',
  });
  Map<String, dynamic> toJson() {
    return {
      "scope": scope,
      "username": username,
      "mobile": mobile,
      "verification_code": verificationCode,
      "truename": truename,
      "credit_type": creditType,
      "credit_id": creditId,
      "corp_name": corpName,
      "rel_person": relPerson,
      "code": code,
      "agent_name": agentName,
      "agent_code": agentCode,
      "agent_phone": agentPhone
    };
  }
}
